diff options
| author | Adam Soltys <[email protected]> | 2022-09-30 15:52:10 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-30 15:52:27 -0700 |
| commit | 63e3eaaa7bf3ba43b95927c1421b0b13cb5816b3 (patch) | |
| tree | ca8b4e6a04b4b977379f3b147c2eccc23de04fb6 /src/routes/invoice/[id] | |
| parent | 6bc16274bd37759c060d18e39f8caee373b09dd2 (diff) | |
| download | coinos-ui-63e3eaaa7bf3ba43b95927c1421b0b13cb5816b3.tar.gz coinos-ui-63e3eaaa7bf3ba43b95927c1421b0b13cb5816b3.zip | |
sent payment confirmation
Diffstat (limited to 'src/routes/invoice/[id]')
| -rw-r--r-- | src/routes/invoice/[id]/+page.svelte | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte index 094f698e..7ff63862 100644 --- a/src/routes/invoice/[id]/+page.svelte +++ b/src/routes/invoice/[id]/+page.svelte @@ -45,7 +45,7 @@ $: tip = Math.round((amount / 100) * tipPercent); $invoices[id] = { amount, id, rate, received, text, tip, username }; - $: $invoices[id]?.received && goto(`/invoice/${id}/paid`); + $: $invoices[id]?.received >= $invoices[id]?.amount && goto(`/invoice/${id}/paid`); $: amountFiat = parseFloat(((amount * rate) / sats).toFixed(2)); |
